package com.health.model;

/**
 * LoginInfo Entity exists to be an Object in session, it is better than "User
 * Object" because it can occupy less memory in session usually, "LoginInfo" is
 * less than "User",it's only have what it need
 */
public class LoginInfo
{
	private String  userId;
	private String	name;
	private String	email;		// unique
	private Integer	permission; // 0:admin 1:normal user
	private Integer	status;	// 0:normal 1:forbidden

	/**
	 * constructors
	 */
	public LoginInfo()
	{}

	public LoginInfo(String userId, String name, String email, Integer permission,
			Integer status)
	{
		super();
		this.userId = userId;
		this.name = name;
		this.email = email;
		this.permission = permission;
		this.status = status;
	}

	/**
	 * getters and setters
	 */
	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public Integer getPermission()
	{
		return permission;
	}

	public void setPermission(Integer permission)
	{
		this.permission = permission;
	}

	public Integer getStatus()
	{
		return status;
	}

	public void setStatus(Integer status)
	{
		this.status = status;
	}

	public String getUserId()
	{
		return userId;
	}

	public void setUserId(String userId)
	{
		this.userId = userId;
	}

}
